package com.newland.mesdk.demo.interfaceimpl;

import com.newland.mtype.ModuleType;
import com.newland.mtype.module.common.pin.K21Pininput;
import com.newland.mtype.module.common.pin.PinInput;
import com.newland.mesdk.demo.moduleinterface.N900PinInputInterface;
import com.newland.mesdk.demo.util.ModuleBase;

/**
 * Created by YJF N900密码键盘接口实现
 */
public class N900PinInputInterfaceImpl extends ModuleBase implements N900PinInputInterface {
	public final static N900PinInputInterfaceImpl INSTANCE = new N900PinInputInterfaceImpl();
	private K21Pininput pinInput = (K21Pininput) factory.getModule(ModuleType.COMMON_PININPUT);

	//设置键盘位置并获取随机键盘键值（N900专用）
	@Override
	public byte[] loadRandomKeyboard(byte[] coordinate) {
		byte[] keyboard =pinInput.loadRandomKeyboard(coordinate);
		return keyboard;
	}
}
